﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace Raspare
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IWcfRaspare
    {

        [OperationContract]
        Karaktär GetWikiSite(string sitename);

        [OperationContract]
        List<string> GetMyDekaederCharacterList(string name);

        [OperationContract]
        List<string> GetMyList(List<string> categories);

        [OperationContract]
        List<Kroklista> GetKrokar(string name);

    }


    [DataContract]
    public partial class Karaktär
    {
        [DataMember]
        public string Namn { get; set; }

        [DataMember]
        public List<Färdighet> Färdigheter { get; set; }

        [DataMember]
        public List<string> Fördelar { get; set; }

        [DataMember]
        public List<string> Kategorier { get; set; }

        [DataMember]
        public List<string> Krokar { get; set; }

        [DataMember]
        public int Veteranpoäng { get; set; }

        [DataMember]
        public int Rollpoäng { get; set; }

        [DataMember]
        public int Karma { get; set; }

        [DataMember]
        public int AntalÄventyr { get; set; }



    }

    [DataContract]
    public class Färdighet
    {
        [DataMember]
        public string Namn;

        [DataMember]
        public int Värde;

        [DataMember]
        public List<string> Specialiseringar;

    }

    [DataContract]
    public class Kroklista
    {
        [DataMember]
        public string Namn;

        [DataMember]
        public List<string> Krokar;

    }
}
